<?php
	$catInfo = get_category(get_queried_object_id());
?>
<!DOCTYPE html>
<html lang="zh">

<head>
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>">
	<script src="<?php bloginfo('template_directory'); ?>/main.js"></script>
	<title><?=$catInfo->name?>-<?=get_bloginfo('name')?></title>
</head>

<body>
	<div class="mask"></div>
	<div class="main ">
		<?php include('header.php'); ?>
		<div class="bg">
			<div class="bcontent container">
				<?php include('sidebar.php'); ?>
				<div class="cmain">
					<?php get_template_part('postx', null, [
						'data' => get_latest_posts_by_category(),
						'showEmpty' => true,
						'showPage' => true,
					]); ?>
				</div>
			</div>
		</div>
		<?php get_footer(); ?>
	</div>

</body>

</html>